import sphRequest from "@/utils/sphRequest";
// 获取验证码
export const getUserCode = (phone) => sphRequest({ url: `user/passport/sendCode/${phone}`, method: "get" });
// 注册用户phone password code
export const registerUser = (data) => sphRequest({ url: "user/passport/register", data, method: "post" });
// 登录用户 phone code
export const goLogin = (data) => sphRequest({ url: "/user/passport/login", method: "post", data });
// 获取用户信息
export const getUserInfo = () => sphRequest({ url: "/user/passport/auth/getUserInfo", method: "get" });
// 退出登陆
export const userLogOut = () => sphRequest({ url: "/user/passport/logout", method: "get" });
